<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" namespace="Northwind" assembly="NHibernate.Class">
    <class name="Northwind.OrderDetail, NHibernate.Class" table="[dbo].[Order Details]" lazy="true">
        <composite-id>
            <key-property name="OrderID" type="Int32" column="OrderID" />
            <key-property name="ProductID" type="Int32" column="ProductID" />
        </composite-id>
        <property name="UnitPrice" type="Decimal">
            <column name="UnitPrice" not-null="true" />
        </property>
        <property name="Quantity" type="Int16">
            <column name="Quantity" not-null="true" />
        </property>
        <property name="Discount" type="System.Single">
            <column name="Discount" not-null="true" />
        </property>
        <many-to-one name="Order" column="OrderID" class="Order" not-null="true" />
        <many-to-one name="Product" column="ProductID" class="Product" not-null="true" />
    </class>
</hibernate-mapping>

